<%@  language="javascript" %> 
<%response.Charset="ISO-8859-1"%> 
<!--#include file="Librerias/DatabaseFunctions.asp" -->
<option value="0">...todos</option>
<%
  qGestion = Session("auth_granted_poa_gestion");
  var aperturaId = 0;
  var productoOId = 0;
  if (request.form("aperturaId").count() == 1)
  {
    aperturaId = request.form("aperturaId");
  }

  // consulta ProductosO
  qProductoO = "SELECT pope" + qGestion + "_id, p" + qGestion + "_id, pope" + qGestion + "_codigo, pope" + qGestion + "_producto, pope" + qGestion + "_objetivo ";
  qProductoO += "FROM POperacion" + qGestion + " ";
  qProductoO += "WHERE 1=1 ";
  if (aperturaId != 0) {
    qProductoO += "AND aper_id=" + aperturaId + " ";
  }
  qProductoO += "ORDER BY pope" + qGestion + "_codigo ";
  var ProductosO = GetDatar(qProductoO);
%>
<% while (!ProductosO.Eof) { %> 
<option value="<%=ProductosO("pope" + qGestion + "_id") %>" <%= (Number(productoOId) == Number(ProductosO("pope" + qGestion + "_id"))) ? " selected='selected' " : "" %>>
  <%=ProductosO("pope" + qGestion + "_codigo") + " - " + String(ProductosO("pope" + qGestion + "_producto")).substring(0,100) + "..." %></option>
<% ProductosO.MoveNext; } %>
